package com.tongji.diy.controller
{
	import com.tongji.diy.event.AddNewFurnitureEvent;
	import com.tongji.diy.model.FurnitureModel;
	
	import org.robotlegs.mvcs.Command;
	
	public class AddFurnitureCommand extends Command
	{
		[Inject]
		public var event:AddNewFurnitureEvent;
		
		[Inject]
		public var model:FurnitureModel;
		public function AddFurnitureCommand()
		{
			super();
		}
		
		override public function execute():void
		{
			model.addFurniture(event.index,event.position,event.angle,event.length,event.width, event.height,event.furnitureClass);
		}
	}
}